< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090302.xhp

(section: goto) (bookmark: bm_id3159413)
GoTo statement

GoTo ステートメント

GoTo Statement [Runtime]
GoTo ステートメント [実行時](hd_id3159413.1)

Continues program execution within a Sub or Function at the procedure line indicated by a label.
Sub や Function などのブロック中で、プログラムの実行行をラベル指定された位置に移動させます。(par_id3153379.2)

(/section: goto)

Syntax:
構文:(hd_id3149656.3)

see Parameters
パラメータを参照(par_id3154367.4)

Parameters:
パラメータ:(hd_id3150870.5)

Sub/Function
Sub/Function(par_id3156214.6)

statement block
ステートメントブロック(par_id3156424.7)

Label1
Label1(par_id3154685.8)

Label2:
Label2:(par_id3145786.9)

statement block
ステートメントブロック(par_id3161832.10)

Exit Sub
Exit Sub(par_id3146120.11)

Label1:
Label1:(par_id3150010.12)

statement block
ステートメントブロック(par_id3152462.13)

GoTo Label2
GoTo Label2(par_id3149664.14)

End Sub/Function
End Sub/Function(par_id3152886.15)

Use the GoTo statement to instruct Office Basic to continue program execution at another place within the procedure. The position must be indicated by a label. To set a label, assign a name, and then and end it with a colon (":").
GoTo ステートメントは、Office Basic プログラムの実行行を他の位置にジャンプさせる際に使用します。移動先はラベルで指示する必要があります。個々のラベルは、ラベル名に続けてコロンを入力することで指定します。(par_id3152596.16)

Warning Icon 警告マーク You cannot use the GoTo statement to jump out of a Sub or Function.
GoTo ステートメントを使って、Sub や Function などのブロック外へジャンプすることはできません。(par_id3155416.17)

Example:
例:(hd_id3154731.19)

see Parameters
パラメータを参照(par_id6967035.)


< Prev / Next >